package org.example.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.entity.Role;
import org.example.entity.User;

import java.util.List;

@Mapper
public interface UserDao {
    //根据用户名查询用户
    User loadUserByUsername(String username);
  	
  	//根据用户id查询角色
  	List<Role> getRolesByUid(Integer uid);
}